<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>新增广告</title>
    <link rel="stylesheet" href="/lib/layui/css/layui.css" media="all">
    <link href="/lib/font-awesome-4.7.0/css/font-awesome.css" rel="stylesheet"/>
    <link href="/lib/winui/css/winui.css" rel="stylesheet"/>
    <style type="text/css">
        .layui-input-block {
            margin-left: 110px;
            min-height: 36px;
            padding-right: 15px;
        }
    </style>
</head>

<body>
<div style="margin-top: 20px;">

</div>
<form class="layui-form" action="/newsAdvertisementController/save">

    <div class="layui-form-item layui-hide">
        <label class="layui-form-label">发布者</label>
        <div class="layui-input-block">

            <input id="creatorId" lay-vertype="tips"
                   name="tcommaccount.accId"
                   class="layui-input"
                   type="text">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">广告超链接</label>
        <div class="layui-input-block">

            <input id="advertisementUrl" lay-vertype="tips" lay-verify="advertisementUrl"
                   name="advertisementUrl"
                   class="layui-input"
                   type="text">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">广告图片</label>

        <input id="advertisementImg"  lay-vertype="tips" lay-verify="advertisementImg"
               name="advertisementImg"
               class="layui-input layui-hide"
               type="text">
        <div class="layui-upload">
            <button type="button" class="layui-btn" id="accPhoto">上传图片</button>
            <div class="layui-upload-list" style="padding-left: 108px;">
                <img class="layui-upload-img" id="accPhotoimg" width="109" height="112" src="/css/zanwutupian.jpg">
                <p id="accPhoto"></p>
            </div>
        </div>

    </div>





    <#--<div class="layui-form-item layui-hide">-->
        <#--<label class="layui-form-label">点击量</label>-->
        <#--<div class="layui-input-block">-->

            <#--<input id="clicksCount" lay-vertype="tips" lay-verify="clicksCount"-->
                   <#--name="clicksCount"-->
                   <#--class="layui-input"-->
                   <#--type="text" value="0" readonly>-->
        <#--</div>-->
    <#--</div>-->



<#--<div class="layui-form-item">-->
<#--<label class="layui-form-label">创建时间</label>-->
<#--<div class="layui-input-block">-->
<#--<input id="createTime"   lay-vertype="tips" required-->
<#--lay-verify="required"   lay-verify="createTime" name="createTime"-->
<#--class="layui-input"-->
<#--type="text" lay-verify="date" placeholder="yyyy-MM-dd">-->
<#--</div>-->
<#--</div>-->


<#---->
<#--<div class="layui-form-item">-->
<#--<label class="layui-form-label">更新时间</label>-->
<#--<div class="layui-input-block">-->
<#--<input id="updateTime"   lay-vertype="tips" required-->
<#--lay-verify="required"   lay-verify="updateTime" name="updateTime"-->
<#--class="layui-input"-->
<#--type="text" lay-verify="date" placeholder="yyyy-MM-dd">-->
<#--</div>-->
<#--</div>-->


    <div class="layui-input-block" style="text-align: center;margin: 0px;padding: 0px;">
        <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
        <button id="retBtn" type="reset" class="layui-btn layui-btn-primary"　>重置</button>
        <input type="reset" class="layui-btn layui-btn-primary layui-hide" id="resetInput" 　/>
    </div>
</form>

<script src="/lib/layui/layui.js"></script>
<script src="/js/newsAdvertisement/add.js"></script>
</body>

</html>
